package com.dailyblue.java.spring.boot.simple.example.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties(prefix = "student")
@PropertySource(value = "classpath:student.properties",encoding = "utf-8")
@Component
public class Student {
    private Integer id;
    private String name;
    private Character sex;
    private Integer age;
    private Teacher teacher;
}
